<template>
  <h2>当前求和为：{{ sum }}</h2>
  <button @click="sum++">点我加一</button>
  <hr />
  <h2>
    当前鼠标坐标：
    <br />
    x：{{ point.x }}
    <br />
    y：{{ point.y }}
  </h2>
</template>

<script>
import { ref, reactive, onMounted, onBeforeUnmount } from "vue";
import usePoint from "../hooks/usePoint";
export default {
  name: "Demo",
  setup() {
    let sum = ref(0);
    let point = usePoint();
    return {
      sum,
      point,
    };
  },
};
</script>

<style>
</style>
